home *** CD-ROM | disk | FTP | other *** search
-
- IEEE(3) UNIX Programmer's Manual IEEE(3)
-
- NNAAMMEE
- ccooppyyssiiggnn, ffiinniittee, iillooggbb, nneexxttaafftteerr, rreemmaaiinnddeerr, ssccaallbbnn - Functions for
- IEEE arithmetic
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<mmaatthh..hh>>
-
- _d_o_u_b_l_e
- ccooppyyssiiggnn(_d_o_u_b_l_e _x, _d_o_u_b_l_e _y)
-
- _f_l_o_a_t
- ccooppyyssiiggnnff(_f_l_o_a_t _x, _f_l_o_a_t _y)
-
- _i_n_t
- ffiinniittee(_d_o_u_b_l_e _x)
-
- _i_n_t
- ffiinniitteeff(_f_l_o_a_t _x)
-
- _i_n_t
- iillooggbb(_d_o_u_b_l_e _x)
-
- _i_n_t
- iillooggbbff(_f_l_o_a_t _x)
-
- _d_o_u_b_l_e
- nneexxttaafftteerr(_d_o_u_b_l_e _x, _d_o_u_b_l_e _y)
-
- _f_l_o_a_t
- nneexxttaafftteerrff(_f_l_o_a_t _x, _f_l_o_a_t _y)
-
- _d_o_u_b_l_e
- rreemmaaiinnddeerr(_d_o_u_b_l_e _x, _d_o_u_b_l_e _y)
-
- _f_l_o_a_t
- rreemmaaiinnddeerrff(_f_l_o_a_t _x, _f_l_o_a_t _y)
-
- _d_o_u_b_l_e
- ssccaallbbnn(_d_o_u_b_l_e _x, _i_n_t _n)
-
- _f_l_o_a_t
- ssccaallbbnnff(_f_l_o_a_t _x, _i_n_t _n)
-
- DDEESSCCRRIIPPTTIIOONN
- These functions are required or recommended by .
-
- ccooppyyssiiggnn() returns _x with its sign changed to _y's.
-
- ffiinniittee() returns the value 1 just when -infinity < _x < +infinity; other-
- wise a zero is returned (when |_x| = infinity or _x is _N_a_N
-
- iillooggbb() returns _x's exponent _n, in integer format. iillooggbb(_+_-_i_n_f_i_n_i_t_y) re-
- turns INT_MAX and iillooggbb(_0) returns INT_MIN.
-
- nneexxttaafftteerr() returns the next machine representable number from _x in di-
- rection _y.
-
- rreemmaaiinnddeerr() returns the remainder _r := _x - _n_*_y where _n is the integer
- nearest the exact value of _x/_y; moreover if |_n - _x/_y| = 1/2 then _n is
- even. Consequently the remainder is computed exactly and |_r| <= |_y|/2.
- But rreemmaaiinnddeerr(_x, _0) and rreemmaaiinnddeerr(_i_n_f_i_n_i_t_y, _0) are invalid operations
- that produce a _N_a_N.
-
- ssccaallbbnn() returns _x*(2**_n) computed by exponent manipulation.
-
- SSEEEE AALLSSOO
- math(3)
-
- HHIISSTTOORRYY
- The iieeeeee functions appeared in 4.3BSD.
-
- SSTTAANNDDAARRDDSS
-
-
- BSD Experimental Feb 25, 1994 2
-